import gevent.monkey
gevent.monkey.patch_all()

import multiprocessing
import os
if not os.path.exists('log'):
    os.mkdir('log')

debug = False
loglevel = 'debug'
bind = '0.0.0.0:5002'
pidfile = 'log/gunicorn.pid'
logfile = 'log/debug.log'
errorlog = 'log/error.log'
accesslog = 'log/access.log'

# 启动的进程数
workers = 12
worker_class = 'geventwebsocket.gunicorn.workers.GeventWebSocketWorker'

x_forwarded_for_header = 'X-FORWARDED-FOR'
